<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Toshiba
 * Date: 11.08.13
 * Time: 20:09
 * To change this template use File | Settings | File Templates.
 */


define('SMARTY_DIR','smarty/libs/');
define('DATA_DIR', 'data/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty = new Smarty();
$smarty->template_dir='template/';
$smarty ->compile_dir='templates_c/';
$smarty ->config_dir='configs/';
$smarty ->cache_dir='cache/';


require('core_functions/getResume.php');
require('core_functions/saveFeedback.php');

getResume($smarty);

if($_SERVER["REQUEST_METHOD"] == "POST"){
    saveFeedback();
}

$smarty->caching=false;
$smarty->display('index.tpl');

